﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {

    public class TStoredObjectAction extends TFarmTransaction {

        public static const UPGRADE:String = "upgrade";

        private var m_action:String = null;
        private var m_callback:Function = null;
        private var m_params:Object = null;

        public function TStoredObjectAction(_arg1:String, _arg2:Function=null, _arg3:Object=null){
            this.m_action = _arg1;
            this.m_callback = _arg2;
            this.m_params = _arg3;
        }
        override public function perform():void{
            var _local1:Number;
            var _local2:Number;
            switch (this.m_action){
                case UPGRADE:
                    _local1 = this.m_params["storageId"];
                    _local2 = this.m_params["storedObjectId"];
                    signedCall("StoredObjectService.upgrade", _local1, _local2);
                    break;
            };
        }
        override protected function onComplete(_arg1:Object):void{
            if (((_arg1) && (_arg1.success))){
            };
            if (this.m_callback != null){
                this.m_callback.call();
            };
        }

    }
}//package Transactions 
